package com.fastloan.jn.mgt.all.table.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.math.BigDecimal;

/**
 * Created by gelon on 2017/11/2.
 */
public class GsonUtil {


    public static Gson build(){
        return new GsonBuilder().registerTypeAdapter(Integer.class, new IntegerAdapter())
                .registerTypeAdapter(Double.class, new DoubleAdapter())
                .registerTypeAdapter(BigDecimal.class, new BigDecimalAdapter()).create();
    }

}
